package edu.uni.dormitory.mapper;

import edu.uni.dormitory.bean.MaintenanceApply;
import edu.uni.dormitory.bean.MaintenanceApplyExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author 郑伟森
 * @create 2019.05.01
 * @function 映射
 */
public interface MaintenanceApplyMapper {
    int countByExample(MaintenanceApplyExample example);

    int deleteByExample(MaintenanceApplyExample example);

    int deleteByPrimaryKey(Long id);

    int insert(MaintenanceApply record);

    int insertSelective(MaintenanceApply record);

    List<MaintenanceApply> selectByExample(MaintenanceApplyExample example);

    MaintenanceApply selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") MaintenanceApply record, @Param("example") MaintenanceApplyExample example);

    int updateByExample(@Param("record") MaintenanceApply record, @Param("example") MaintenanceApplyExample example);

    int updateByPrimaryKeySelective(MaintenanceApply record);

    int updateByPrimaryKey(MaintenanceApply record);

    MaintenanceApply selectMaintenanceApplyByArea(@Param("id") Long id, @Param("areaId") Long areaId);

    List<MaintenanceApply> selectByRoomWithStuId(Long loginId);

    List<MaintenanceApply> selectMaintenanceApplyPageByArea(Long areaId);
}